#include<bits/stdc++.h>

using namespace std;

class Solution {
public:
    vector<vector<int>> groupThePeople(vector<int>& groupSizes) {
        int n = groupSizes.size();

        vector<int> sum(n+1);

        for (int i = 0; i < n; i++)
        {
            sum[groupSizes[i]]++;
        }

        vector<vector<int>> res;
        for (int i = 1; i <= n; i++)
        {
            int num = sum[i] / i;
            for (int j = 0; j < num; j++)
            {
                vector<int> p(i);
                res.push_back(p);
            }
        }

        for (int i = 0; i < n; i++)
        {
            
        }
    }
};